//
//  SceneDefine.h
//  ThunderWarriors
//
//  Created by mac on 12-12-23.
//
//

#ifndef ThunderWarriors_SceneDefine_h
#define ThunderWarriors_SceneDefine_h

typedef enum __GameSceneIdType__{
    GAME_SCENE_UNKNOWN,
    GAME_SCENE_LOGIN,
    GAME_SCENE_MAIN,
    GAME_SCENE_SETTING,
    GAME_SCENE_GAMEOVER,
    
    //add your scene id before max id.
    GAME_SCENE_MAX
}GameSceneIdType;

#define CREATE_FUNC_SCENE_WITHID(__TYPE__) \
static __TYPE__* createWithSceneId(GameSceneIdType sceneId) \
{ \
__TYPE__ *pRet = new __TYPE__(); \
if (pRet && pRet->init()) \
{ \
pRet->autorelease();\
pRet->setGameSceneIdType(sceneId);\
return pRet; \
} \
else \
{ \
if(pRet) delete pRet; \
pRet = NULL; \
return NULL; \
} \
}

#endif
